this._gclueStarting = false;
this._gclueLocationChangedId = 0;
+ this._locationSettings = new Gio.Settings({ schema_id: 'org.gnome.system.location' });
+ this._locationSettings.connect('changed::enabled',
+ Lang.bind(this, this._updateAutoLocation));
+
this._world = GWeather.Location.get_world();
let providers = GWeather.Provider.METAR |
},
get _useAutoLocation() {
- return this._autoLocationRequested;
+ return this._autoLocationRequested &&
+ this._locationSettings.get_boolean('enabled');
},
_loadInfo: function() {
this._autoLocationRequested = useAutoLocation;
+ this._updateAutoLocation();
+ },
+
+ _updateAutoLocation: function() {
this._updateLocationMonitoring();
if (this._useAutoLocation)